package com.service.cash;

import com.bean.Cash_apply;
import com.bean.Cash_pay;
import com.bean.Mb_account;
import com.github.pagehelper.Page;
import com.service.core.BaseService;

import java.util.HashMap;

/**
 * Created by lvjianqing on 2017/9/16.
 */
public interface CashService extends BaseService<Cash_apply,Integer> {
    Page findByPage(int pageNum, int pageSize, HashMap<String, Object> paraMap);

    /**
     * 佣金提现申请
     * @param cash
     * @param account
     * @return
     * @throws Exception
     */
    int saveCashRebate(Cash_apply cash,Mb_account account) throws Exception;
    /**
     * 余额提现申请
     * @param cash
     * @param account
     * @return
     * @throws Exception
     */
    int saveCashBalance(Cash_apply cash,Mb_account account) throws Exception;
    Cash_pay findCashPayByApplyId(Integer applyId);

    /**
     * 审核佣金提现申请
     * @return
     */
    int saveCashRebateVerify(Cash_apply cash,Cash_pay pay);
    /**
     * 审核余额提现申请
     * @return
     */
    int saveCashBalanceVerify(Cash_apply cash,Cash_pay pay);
}
